import request from '@/utils/request'

// 查询菜单列表
export function listDataFilling(query) {
  return request({
    url: '/goldwind/performance/pt-target-resolve-detail/selectPageForFillData',
    method: 'get',
    params: query
  })
}
// 导出菜单列表
export function exportDataFilling(query) {
  return request({
    url: '/goldwind/performance/pt-target-resolve-detail/selectPageForFillData',
    method: 'get',
    params: query,
    responseType: 'blob',
  })
}
// 通过id获取批量审核详情页数据
export function submitReview(id) {
  return request({
    url: `/goldwind/performance/pt-target-resolve-detail/submit/?ids=` + id,
    method: 'get',
  })
} 
// 批量填报接口
export function addDFilling(data) {
  return request({
    url: '/goldwind/performance/pt-target-resolve-detail/fillBatch',
    method: 'post',
    data
  })
}

// 批量填报合并信息接口(前端需要控制指标编码,指标名称,年度信息一致)
export function getDataFillingDetail(data) {
  return request({
    url: '/goldwind/performance/pt-target-resolve-detail/getMergeInfo',
    method: 'post',
    data
  })
}
// 批量审核
export function addDataFilling(data) {
  return request({
    url: '/goldwind/performance/pt-target-resolve-detail/approval',
    method: 'post',
    data
  })
}